package Rest;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;

import Data.Criteria;
import RequestBuilder.RequestBuilderFreeBase;


/**
 * GET		/criterias
 * @author user
 *
 */
@Path("/")
public class RestRouter {
	
	@GET @Path("/criterias")
	@Produces(MediaType.APPLICATION_JSON)
	public Response getCriterias() {
		return Response.status(Status.OK)
						.entity(Criteria.getRegisteredCriterias())
						.build();
	}
	
	
	@GET @Path("/testfreebase1")
	public Response testFreebase1() {
		return Response.status(Status.OK).entity(RequestBuilderFreeBase.testFreebase1()).build();
	}
	
	@GET @Path("/testfreebase2")
	public Response testFreebase2() {
		return Response.status(Status.OK).entity(RequestBuilderFreeBase.testFreebase2()).build();
	}
	
	@GET @Path("/testfacebook")
	public Response testFacebook() {
		return Response.status(Status.OK).entity("criteres").build();
	}
	

}
